-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pcflags tostr refactor #567
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- ExportAs function moved into ide_export.bas - renamed file_converters.bas into ide_converters.bas - made all $INCLUDE lines using backslash
- auto-include manager pulled into GOSUB routine - precompiler flags pulled into GOSUB routine
- adjusted to _XXX_ syntax - minor rewording
- shaping the state and recompile handling into a reliable system
- no unneeded leading/trailing space - working with full _FLOAT range - optional number of significant digits argument
- use the new _ToStr$() function for _FLOAT values (CONST eval. + $DEBUG variable watch)
- auto-include tests - function _ToStr$() tests - precompiler flags tests
- one more change missed in the "Reworking sources" commit
- business as usual
RhoSigma-QB64
requested review from
grymmjack,
mkilgore,
flukiluke,
SteveMcNeill and
a740g
November 14, 2024 00:44
- removed/fixed the last remains of $NOPREFIX dependent code (mainly in $DEBUG code)
- added constants for minimal fraction in each type
a740g
approved these changes
Nov 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pre-Compiler Flags
_QB64PE_
always true (-1)_ASSERTS_
= 1 if $ASSERTS or $ASSERTS:CONSOLE is used, 0 otherwise_CONSOLE_
= 1 if a console is active either by using $CONSOLE directly or implied by $ASSERTS:CONSOLE, = 2 if $CONSOLE:ONLY is set, 0 if no console is available (both console variants may appear multiple times in a program, the last found one determines the final state)_DEBUG_
= 1 if $DEBUG is used, 0 otherwise_SOCKETS_
= 1 if the program uses _OPENHOST/CLIENT, 0 otherwise (for internal use)_EXPLICIT_
= 1 if the program uses OPTION _EXPLICIT, 0 otherwise (note OE implies _EXPLICITARRAY)_EXPLICITARRAY_
= 1 if the program uses OPTION _EXPLICITARRAY or OPTION _EXPLICIT, 0 otherwiseNew function
_ToStr$(value[,digits])
Additional
_ToStr$()
function for_FLOAT
values (CONST evaluation + $DEBUG variable watch)